Zadig 文档
Zadig
教程
博客
论坛
关于
中文英文
Zadig
教程
博客
论坛
关于
Zadig v4.2
Loading...
     编辑文档
     反馈问题
     社区讨论

    本页导航

    发布计划

    本文主要介绍如何使用 Zadig 的发布计划功能,包括发布计划的规划、审批和执行,以及追踪详细的操作记录。

    # 规划

    访问管理 -> 发布计划,新建发布计划并填写内容后保存草稿即可,支持多人协同合作规划发布计划。

    发布计划

    参数说明:

    • 名称:发布计划名称
    • 发布负责人:负责此次发布的负责人,发布计划制定后,仅负责人可执行发布
    • 发布窗口期:可以进行发布操作的时间窗口
    • 定时执行:在指定时间执行发布项中的工作流
    • 需求关联:发布关联的需求清单,支持关联多个 JIRA 冲刺
    • 发布内容:具体的发布内容,可创建多个,每一个发布项可指定负责人,可指定负责人可操作执行。发布项包含富文本和工作流两种类型
      • 富文本类型:输入内容
      • 工作流类型:选择 Zadig 中的项目和工作流,按需配置工作流参数
    • 审批配置:按需配置审批,支持 Zadig、飞书、钉钉三种审批方式
      • Zadig:审批申请将会发送到 Zadig 账号对应的邮箱中,具体审批配置可参考 Zadig 审批
      • 飞书:审批申请将会发送到飞书中,具体审批配置可参考 飞书审批
      • 钉钉:审批申请将会发送到钉钉中,具体审批配置可参考 钉钉审批

    # 审批

    适用于发布计划中包含审批配置的场景。

    发布负责人提交审批后,由审批人负责审批。审批通过后发布负责人才可以操作发布。

    提示

    如果审批拒绝,可再次编辑发布计划的内容,重新规划发布计划。

    发布计划

    # 执行

    提示

    1. 在发布时间窗口内可操作执行。
    2. 仅发布负责人可操作执行。

    对于富文本类型的发布内容,点击右侧的完成,输入发布备注即可。

    发布计划

    对于工作流类型的发布内容,点击右侧的执行即可自动触发工作流执行,点击链接可跳转查看工作流执行详情。

    对于需要跳过执行的发布项,可点跳过,所有发布项完成执行或者跳过,发布计划自动为完成。

    # 操作记录

    系统中详细记录了发布计划的操作日志,点击操作记录即可查看。

    发布计划

    # Hook 外部系统与 CallBack

    # Hook 外部系统

    请求

    POST
    
    1

    body 参数说明

    参数名类型描述
    idstring发布计划 id
    indexstring发布计划索引
    namestring发布计划名称
    event_namestring事件名称,枚举值:finish_planning, start_execute, all_job_done
    descriptionstring需求关联
    managerstring发布负责人
    manager_idstring发布负责人 ID
    instance_codestring实例 Code(每次编辑后不同)
    start_timeint发布窗口期-开始时间
    end_timeint发布窗口期-结束时间
    schedule_execute_timeint定时执行时间
    approval_timeint审批时间
    planning_timeint规划时间
    executing_timeint执行时间
    success_timeint成功时间
    statusstring状态
    jobs[]HookReleasePlanJob发布内容列表
    created_bystring创建者
    create_timeint创建时间
    updated_bystring更新者
    update_timeint更新时间

    发布计划状态说明

    名称描述
    planning规划中
    finish_planning规划完成
    wait_for_approval等待审批
    executing执行中
    denied拒绝
    timeout超时
    success成功
    wait_for_finish_planning_external_check等待规划完成的外部检测
    wait_for_execute_external_check等待执行的外部检测
    wait_for_all_done_external_check等待发布项全部完成的外部检测
    wait_for_finish_planning_external_check_failed等待规划完成的外部检测失败
    wait_for_execute_external_check_failed等待执行的外部检测失败
    wait_for_all_done_external_check_failed等待发布项全部完成的外部检测失败
    cancel取消

    HookReleasePlanJob 参数说明

    参数名类型说明
    idstring发布任务 id
    namestring发布任务名称
    statusstring发布任务状态
    typestring发布任务类型,包括 text 和 workflow
    specReleaseJobSpec发布任务规格,当类型为 text 时规格为 TextReleasePlanJob,当类型为 workflow 时规格为 WorkflowReleasePlanJob
    executed_bystring执行人
    executed_timestring执行时间

    发布计划任务状态说明

    名称描述
    todo未开始
    done完成
    skipped已跳过
    failed拒绝
    running运行中

    TextReleasePlanJob 参数说明

    参数名类型说明
    contentstring内容
    remarkstring备注

    WorkflowReleasePlanJob 参数说明

    参数名类型说明
    workflowWorkflow工作流
    statusstring任务状态包括:created(创建中)、running(运行中)、passed(通过)、failed(失败)、timeout(超时)、cancelled(取消)
    task_idint工作流任务 ID

    Workflow 参数说明

    参数名类型说明
    namestring工作流标识
    display_namestring工作流显示名称
    disabledbool是否禁用
    params[]WorkflowParam全局变量列表
    stages[]WorkflowStage阶段
    projectstring项目标识
    descriptionstring描述
    created_bystring创建者
    create_timeint创建时间
    updated_bystring更新者
    update_timeint更新时间
    remarkstring备注

    WorkflowParam 全局变量参数说明

    参数名类型说明
    namestring变量名称
    descriptionstring变量描述
    typestring变量类型,支持 string/text/choice/repo 类型
    valuestring变量值
    repoReporepo 类型的变量值,仅当类型为 repo 时使用该字段
    choice_options[]string选项可选值
    choice_value[]string选项值
    defaultstring默认值
    is_credentialbool是否为敏感信息
    sourcestring来源,支持 runtime/fixed/reference

    Repo 参数说明

    参数名类型说明
    sourcestring来源
    repo_ownerstring仓库所有者
    repo_namespacestring仓库命名空间
    repo_namestring仓库名称
    remote_namestring远程名称
    branchstring分支名称
    prs[]intPR编号列表
    tagstring标签名称
    commit_idstring提交ID
    commit_messagestring提交信息
    checkout_pathstring检查路径
    codehost_idint代码源ID
    addressstring地址

    WorkflowStage 参数说明

    参数名类型说明
    namestring名称
    jobs[]WorkflowJob任务列表

    WorkflowJob 参数说明

    参数名类型说明
    namestring名称
    typeWorkflowJobType类型,支持 zadig-build/zadig-deploy/zadig-vm-deploy/zadig-test/zadig-scanning/zadig-distribute-image/freestyle/apollo/nacos/sql
    specany任务规格
    run_policystring运行策略,支持 default_not_run/force_run/skip,如为空则为默认运行

    WorkflowJobType 参数说明

    参数名对应 Spec说明
    zadig-buildWorkflowBuildJobSpec构建任务 Spec
    zadig-deployWorkflowDeployJobSpec部署任务 Spec
    zadig-vm-deployWorkflowVmDeployJobSpec主机部署任务 Spec
    zadig-testWorkflowTestingJobSpec测试任务 Spec
    zadig-scanningWorkflowScanningJobSpec扫描任务 Spec
    zadig-distribute-imageWorkflowDistributeImageJobSpec分发镜像任务 Spec
    freestyleWorkflowFreestyleJobSpec通用任务 Spec
    apolloWorkflowApolloJobSpecApollo 任务 Spec
    nacosWorkflowNacosJobSpecNacos 任务 Spec
    sqlWorkflowSqlJobSpecSQL 任务 Spec

    WorkflowBuildJobSpec 参数说明

    参数名类型说明
    sourcestring来源,可选值为:runtime/fixed/fromjob
    job_namestring引用的任务名称,当来源为 fromjob 时使用
    ref_reposbool是否引用所选任务代码信息
    service_and_builds[]ServiceAndBuild服务和构建列表

    ServiceAndBuild 参数说明

    参数名类型说明
    service_namestring服务名称
    service_modulestring服务组件
    build_namestring构建名称
    imagestring镜像地址
    packagestring二进制包地址
    image_namestring镜像名称
    key_vals[]KeyVal构建变量列表
    repos[]Repo仓库列表

    KeyVal 参数说明

    参数名类型说明
    keystring变量名称
    valuestring变量值
    typestring变量类型,可选值为:string/choice/multi-select/image/script
    registry_idstring镜像仓库 ID
    scriptstring脚本
    call_functionstring调用函数
    choice_option[]string选项可选值
    choice_value[]string选项值
    is_credentialbool是否为敏感信息
    descriptionstring描述
    sourcestring来源,可选值为:runtime/fixed/reference

    WorkflowDeployJobSpec 参数说明

    参数名类型说明
    envstring环境名称
    productionbool是否为生产环境
    deploy_typestring部署类型
    sourcestring来源,fromjob/runtime, runtime 表示运行时输入,fromjob 表示从上游构建任务中获取
    env_sourcestring环境来源,fromjob/runtime, runtime 表示运行时输入,fromjob 表示从上游构建任务中获取
    deploy_contents[]string部署内容,包括 image/vars/config
    job_namestring引用的任务名称,当来源为 fromjob 时使用
    version_namestring版本名称,当从版本导入时使用
    services[]DeployServiceInfo服务列表

    DeployServiceInfo 参数说明

    参数名类型说明
    service_namestring服务名称
    modules[]DeployModuleInfo模块列表
    deployedbool是否已部署
    auto_syncbool环境中是否开启自动同步
    update_configbool是否更新配置
    updatablebool是否可更新
    variable_kvs[]DeployVariableKv变量列表
    variable_yamlstring最终的变量 Yaml,用于 Helm 和 K8S Yaml 服务
    value_merge_strategystringValues 合并策略,用于 Helm 服务,可选项为:override/reuse-values
    override_kvsstring键值对变量,用于 Helm 服务,json 编码的键值对值

    DeployModuleInfo 参数说明

    参数名类型说明
    service_modulestring服务组件
    imagestring镜像地址
    image_namestring镜像名称

    DeployVariableKv 参数说明

    参数名类型说明
    keystring变量名称
    valuestring镜像地址
    typestring变量类型,可选值为:string/bool/enum/yaml
    optionsstring选项可选值,当 type 为 enum 时使用
    descstring描述
    use_global_variablebool是否使用全局变量

    WorkflowVmDeployJobSpec 参数说明

    参数名类型说明
    envstring环境名称
    productionbool是否为生产环境
    env_aliasstring环境别名
    sourcestring来源,fromjob/runtime, runtime 表示运行时输入,fromjob 表示从上游构建任务中获取
    job_namestring引用的任务名称,当来源为 fromjob 时使用
    ref_reposbool是否引用所选任务代码信息
    service_and_vm_deploys[]ServiceAndVmDeploy服务和主机部署列表

    ServiceAndVmDeploy 参数说明

    参数名类型说明
    service_namestring服务名称
    service_modulestring服务组件
    deploy_namestring部署名称
    deploy_artifact_typestring部署交付物类型,可选值为:image/file/other
    artifact_urlstring部署交付物地址
    file_namestring部署交付物文件名称
    imagestring部署交付物镜像地址
    key_vals[]KeyVal变量列表
    repos[]Repo仓库列表

    WorkflowFreestyleJobSpec 参数说明

    参数名类型说明
    freestyle_typestring通用任务类型,值为空时为单服务,值为 service_freestyle 时为多服务
    sourcestring来源,fromjob/runtime, runtime 表示运行时输入,fromjob 表示从上游构建任务中获取
    job_namestring引用的任务名称,当来源为 fromjob 时使用
    ref_reposbool是否引用所选任务代码信息
    repos[]Repo仓库列表,单服务时使用
    envs[]KeyVal变量列表,单服务时使用
    services[]FreeStyleServiceInfo服务列表

    FreeStyleServiceInfo 参数说明

    参数名类型说明
    service_namestring服务名称
    service_modulestring服务组件
    repos[]Repo仓库列表
    key_vals[]KeyVal变量列表

    WorkflowTestingJobSpec 参数说明

    参数名类型说明
    testing_typestring测试任务类型,值为空时为单服务,值为 service_test 时为多服务
    sourcestring来源,fromjob/runtime, runtime 表示运行时输入,fromjob 表示从上游构建任务中获取
    job_namestring引用的任务名称,当来源为 fromjob 时使用
    ref_reposbool是否引用所选任务代码信息
    service_and_tests[]ServiceAndTest服务和测试列表,测试任务类型为多服务时使用
    test_modules[]TestModule测试模块列表,测试任务类型为单服务时使用

    ServiceAndTest 参数说明

    参数名类型说明
    namestring测试名称
    service_namestring服务名称
    service_modulestring服务组件
    repos[]Repo仓库列表
    key_vals[]KeyVal变量列表

    TestModule 参数说明

    参数名类型说明
    namestring测试名称
    repos[]Repo仓库列表
    key_vals[]KeyVal变量列表

    WorkflowScanningsJobSpec 参数说明

    参数名类型说明
    scannings_typestring扫描任务类型,值为空时为单服务,值为 service_scannings 时为多服务
    sourcestring来源,fromjob/runtime, runtime 表示运行时输入,fromjob 表示从上游构建任务中获取
    job_namestring引用的任务名称,当来源为 fromjob 时使用
    ref_reposbool是否引用所选任务代码信息
    service_and_scannings[]ServiceAndScannings服务和扫描列表,扫描任务类型为多服务时使用
    scannings_modules[]ScanningsModule扫描模块列表,扫描任务类型为单服务时使用

    ServiceAndScannings 参数说明

    参数名类型说明
    namestring扫描名称
    service_namestring服务名称
    service_modulestring服务组件
    repos[]Repo仓库列表
    key_vals[]KeyVal变量列表

    ScanningsModule 参数说明

    参数名类型说明
    namestring扫描名称
    repos[]Repo仓库列表
    key_vals[]KeyVal变量列表

    WorkflowNacosJobSpec 参数说明

    参数名类型说明
    nacos_idstringNacos ID
    namespace_idstringNacos 命名空间 ID
    sourcestring来源,fixed/runtime, runtime 表示运行时输入,fixed 表示固定值
    nacos_datas[]NacosDataNacos 数据列表

    NacosData 参数说明

    参数名类型说明
    data_idstring数据 ID
    groupstring数据组
    descstring数据描述
    formatstring数据格式
    contentstring数据内容
    original_contentstring原始数据内容
    namespace_idstringNacos 命名空间 ID
    namespace_namestringNacos 命名空间名称

    WorkflowApolloJobSpec 参数说明

    参数名类型说明
    apollo_idstringApollo ID
    namespace_list[]ApolloNamespaceApollo 命名空间列表

    ApolloNamespace 参数说明

    参数名类型说明
    app_idstring应用 ID
    cluster_idstring集群 ID
    envstring环境
    namespacestring命名空间
    typestring类型
    original_config[]ApolloKV原始配置
    kv[]ApolloKV键值对列表

    ApolloKV 参数说明

    参数名类型说明
    keystring键
    valstring值

    WorkflowSqlJobSpec 参数说明

    参数名类型说明
    idstring数据库实例 ID
    typestring数据库实例类型,mysql/mariadb
    sqlstringSQL 语句
    sourcestring来源,fixed/runtime, runtime 表示运行时输入,fixed 表示固定值

    WorkflowDistributeImageJobSpec 参数说明

    参数名类型说明
    sourcestring来源,fromjob/runtime, runtime 表示运行时输入,fromjob 表示从上游构建任务中获取
    job_namestring引用的任务名称,当来源为 fromjob 时使用
    distribute_methodstring分发镜像方式,image_push/cloud_sync
    targets[]DistributeImageTarget镜像分发目标列表
    enable_target_image_tag_rulestring是否启用镜像版本规则
    target_image_tag_rulestring镜像版本规则

    DistributeImageTarget 参数说明

    参数名类型说明
    service_namestring服务名称
    service_modulestring服务组件
    source_tagstring源镜像标签
    target_tagstring镜像版本
    image_namestring镜像名称
    source_imagestring源镜像
    target_imagestring目标镜像
    update_tagbool如果 UpdateTag 为 false,则使用源标签作为目标标签

    body 参数示例

    点击查看
    {
      "object_kind": "release_plan",
      "event": "release_plan",
      "workflow": null,
      "release_plan": {
        "id": "68b7ec363306e52e21b2dbe6",
        "index": 52,
        "name": "workflow-plan-3",
        "event_name": "all_job_done",
        "manager": "patrick",
        "manager_id": "14790d50-37b3-11f0-b3aa-ee39782dea6e",
        "start_time": 1756883513,
        "end_time": 1757488313,
        "schedule_execute_time": 1756893020,
        "description": "<p><br></p>",
        "created_by": "patrick",
        "create_time": 1756884022,
        "updated_by": "系统",
        "update_time": 1756893023,
        "jobs": [
          {
            "id": "e092f96c-4f78-410e-88bb-7afa881471d9",
            "name": "all",
            "type": "workflow",
            "spec": {
              "workflow": {
                "name": "release-plan-hook-2",
                "display_name": "release-plan-hook-2",
                "disabled": false,
                "category": "",
                "params": [],
                "stages": [
                  {
                    "name": "build",
                    "jobs": [
                      {
                        "name": "build",
                        "type": "zadig-build",
                        "spec": {
                          "source": "runtime",
                          "job_name": "",
                          "ref_repos": false,
                          "service_and_builds": [
                            {
                              "service_name": "service1",
                              "service_module": "service1",
                              "build_name": "yaml-general-build",
                              "image": "{{.job.build.service1.service1.output.IMAGE}}",
                              "package": "{{.job.build.service1.service1.output.PKG_FILE}}",
                              "image_name": "service1",
                              "key_vals": [
                                {
                                  "key": "gggg",
                                  "value": "gggg",
                                  "type": "string",
                                  "registry_id": "",
                                  "is_credential": false,
                                  "description": "",
                                  "source": "runtime"
                                }
                              ],
                              "repos": [
                                {
                                  "source": "gitlab",
                                  "repo_owner": "kr-test-org1",
                                  "repo_namespace": "kr-test-org1",
                                  "repo_name": "multi-service-demo",
                                  "remote_name": "origin",
                                  "branch": "patrick-01",
                                  "tag": "",
                                  "commit_id": "311fa899187a674a2e7fbf76cf2eeecdc8a51ac1",
                                  "commit_message": "update service2 values\n",
                                  "checkout_path": "",
                                  "submodules": false,
                                  "codehost_id": 1,
                                  "address": "https://gitlab.com/",
                                }
                              ]
                            },
                            {
                              "service_name": "service2",
                              "service_module": "service2",
                              "build_name": "yaml-general-build",
                              "image": "{{.job.build.service2.service2.output.IMAGE}}",
                              "package": "{{.job.build.service2.service2.output.PKG_FILE}}",
                              "image_name": "service2",
                              "key_vals": [
                                {
                                  "key": "gggg",
                                  "value": "gggg",
                                  "type": "string",
                                  "registry_id": "",
                                  "is_credential": false,
                                  "description": "",
                                  "source": "runtime"
                                }
                              ],
                              "repos": [
                                {
                                  "source": "gitlab",
                                  "repo_owner": "kr-test-org1",
                                  "repo_namespace": "kr-test-org1",
                                  "repo_name": "multi-service-demo",
                                  "remote_name": "origin",
                                  "branch": "main",
                                  "tag": "",
                                  "commit_id": "1d85022328d6c4d8f6df5890dd0efa48f0e52cea",
                                  "commit_message": "Edit deployment.yaml",
                                  "checkout_path": "",
                                  "submodules": false,
                                  "codehost_id": 1,
                                  "address": "https://gitlab.com/",
                                }
                              ]
                            }
                          ]
                        },
                        "run_policy": ""
                      }
                    ]
                  },
                  {
                    "name": "deploy",
                    "jobs": [
                      {
                        "name": "deploy",
                        "type": "zadig-deploy",
                        "spec": {
                          "env": "dev",
                          "production": false,
                          "deploy_type": "k8s",
                          "source": "fromjob",
                          "env_source": "runtime",
                          "deploy_contents": [
                            "image",
                            "vars"
                          ],
                          "job_name": "build",
                          "version_name": "",
                          "services": [
                            {
                              "service_name": "service1",
                              "modules": [
                                {
                                  "service_module": "service1",
                                  "image": "{{.job.build.service1.service1.output.IMAGE}}",
                                  "image_name": ""
                                }
                              ],
                              "deployed": false,
                              "auto_sync": false,
                              "update_config": false,
                              "updatable": false,
                              "variable_kvs": [
                                {
                                  "key": "port",
                                  "value": "20221",
                                  "type": "string",
                                  "options": [],
                                  "desc": "",
                                  "use_global_variable": false,
                                  "is_reference_variable": false
                                },
                                {
                                  "key": "targetport",
                                  "value": "20221",
                                  "type": "string",
                                  "options": [],
                                  "desc": "",
                                  "use_global_variable": false,
                                  "is_reference_variable": false
                                },
                                {
                                  "key": "replica",
                                  "value": "1",
                                  "type": "string",
                                  "options": [],
                                  "desc": "",
                                  "use_global_variable": false,
                                  "is_reference_variable": false
                                }
                              ],
                              "variable_yaml": "",
                              "value_merge_strategy": "reuse-values",
                              "override_kvs": ""
                            },
                            {
                              "service_name": "service2",
                              "modules": [
                                {
                                  "service_module": "service2",
                                  "image": "{{.job.build.service2.service2.output.IMAGE}}",
                                  "image_name": ""
                                }
                              ],
                              "deployed": false,
                              "auto_sync": false,
                              "update_config": false,
                              "updatable": false,
                              "variable_kvs": [
                                {
                                  "key": "port",
                                  "value": "20222",
                                  "type": "string",
                                  "options": [],
                                  "desc": "",
                                  "use_global_variable": false,
                                  "is_reference_variable": false
                                },
                                {
                                  "key": "targetport",
                                  "value": "20222",
                                  "type": "string",
                                  "options": [],
                                  "desc": "",
                                  "use_global_variable": false,
                                  "is_reference_variable": false
                                },
                                {
                                  "key": "replica",
                                  "value": "1",
                                  "type": "string",
                                  "options": [],
                                  "desc": "",
                                  "use_global_variable": false,
                                  "is_reference_variable": false
                                }
                              ],
                              "variable_yaml": "",
                              "value_merge_strategy": "reuse-values",
                              "override_kvs": ""
                            }
                          ]
                        },
                        "run_policy": ""
                      }
                    ]
                  },
                  {
                    "name": "scanning",
                    "jobs": [
                      {
                        "name": "scanning",
                        "type": "zadig-scanning",
                        "spec": {
                          "scanning_type": "service_scanning",
                          "source": "fromjob",
                          "job_name": "build",
                          "ref_repos": true,
                          "scannings": [],
                          "service_and_scannings": [
                            {
                              "service_name": "service2",
                              "service_module": "service2",
                              "name": "go-scanner",
                              "repos": [
                                {
                                  "source": "gitlab",
                                  "repo_owner": "kr-poc",
                                  "repo_namespace": "kr-poc",
                                  "repo_name": "multi-service-demo",
                                  "remote_name": "origin",
                                  "branch": "feature-3",
                                  "tag": "",
                                  "commit_id": "d53a92ffe24ba285151c094e41e3faba620ff1e4",
                                  "commit_message": "Add new file",
                                  "checkout_path": "",
                                  "submodules": false,
                                  "codehost_id": 1,
                                  "address": "https://gitlab.com/",
                                }
                              ],
                              "key_vals": [
                                {
                                  "key": "eee",
                                  "value": "qrew3rw3r",
                                  "type": "text",
                                  "registry_id": "",
                                  "is_credential": false,
                                  "description": "",
                                  "source": ""
                                }
                              ]
                            },
                            {
                              "service_name": "service1",
                              "service_module": "service1",
                              "name": "go-scanner",
                              "repos": [
                                {
                                  "source": "gitlab",
                                  "repo_owner": "kr-poc",
                                  "repo_namespace": "kr-poc",
                                  "repo_name": "multi-service-demo",
                                  "remote_name": "origin",
                                  "branch": "feature-3",
                                  "tag": "",
                                  "commit_id": "d53a92ffe24ba285151c094e41e3faba620ff1e4",
                                  "commit_message": "Add new file",
                                  "checkout_path": "",
                                  "submodules": false,
                                  "codehost_id": 1,
                                  "address": "https://gitlab.com/",
                                }
                              ],
                              "key_vals": [
                                {
                                  "key": "eee",
                                  "value": "qrew3rw3r",
                                  "type": "text",
                                  "registry_id": "",
                                  "is_credential": false,
                                  "description": "",
                                  "source": ""
                                }
                              ]
                            }
                          ]
                        },
                        "run_policy": ""
                      },
                      {
                        "name": "product-scanning",
                        "type": "zadig-scanning",
                        "spec": {
                          "scanning_type": "",
                          "source": "runtime",
                          "job_name": "",
                          "ref_repos": false,
                          "scannings": [
                            {
                              "name": "go-scanner",
                              "repos": [
                                {
                                  "source": "gitlab",
                                  "repo_owner": "kr-poc",
                                  "repo_namespace": "kr-poc",
                                  "repo_name": "multi-service-demo",
                                  "remote_name": "origin",
                                  "branch": "feature-3",
                                  "tag": "",
                                  "commit_id": "d53a92ffe24ba285151c094e41e3faba620ff1e4",
                                  "commit_message": "Add new file",
                                  "checkout_path": "",
                                  "submodules": false,
                                  "codehost_id": 1,
                                  "address": "https://gitlab.com/",
                                }
                              ],
                              "key_vals": [
                                {
                                  "key": "eee",
                                  "value": "qrew3rw3r",
                                  "type": "text",
                                  "registry_id": "",
                                  "is_credential": false,
                                  "description": "",
                                  "source": ""
                                }
                              ]
                            }
                          ],
                          "service_and_scannings": []
                        },
                        "run_policy": ""
                      }
                    ]
                  },
                  {
                    "name": "testing",
                    "jobs": [
                      {
                        "name": "testing",
                        "type": "zadig-test",
                        "spec": {
                          "test_type": "service_test",
                          "source": "fromjob",
                          "job_name": "build",
                          "ref_repos": true,
                          "service_and_tests": [
                            {
                              "service_name": "service1",
                              "service_module": "service1",
                              "name": "pytest-yaml",
                              "key_vals": [],
                              "repos": [
                                {
                                  "source": "gitlab",
                                  "repo_owner": "kr-poc",
                                  "repo_namespace": "kr-poc",
                                  "repo_name": "num_test",
                                  "remote_name": "origin",
                                  "branch": "master",
                                  "tag": "",
                                  "commit_id": "3d9fe02a2775caa25f5c1da925239f9e96f9900a",
                                  "commit_message": "Add new file",
                                  "checkout_path": "",
                                  "submodules": false,
                                  "codehost_id": 1,
                                  "address": "https://gitlab.com/",
                                }
                              ]
                            },
                            {
                              "service_name": "service2",
                              "service_module": "service2",
                              "name": "pytest-yaml",
                              "key_vals": [],
                              "repos": [
                                {
                                  "source": "gitlab",
                                  "repo_owner": "kr-poc",
                                  "repo_namespace": "kr-poc",
                                  "repo_name": "num_test",
                                  "remote_name": "origin",
                                  "branch": "master",
                                  "tag": "",
                                  "commit_id": "3d9fe02a2775caa25f5c1da925239f9e96f9900a",
                                  "commit_message": "Add new file",
                                  "checkout_path": "",
                                  "submodules": false,
                                  "codehost_id": 1,
                                  "address": "https://gitlab.com/",
                                }
                              ]
                            }
                          ],
                          "test_modules": []
                        },
                        "run_policy": ""
                      },
                      {
                        "name": "product-testing",
                        "type": "zadig-test",
                        "spec": {
                          "test_type": "",
                          "source": "runtime",
                          "job_name": "",
                          "ref_repos": false,
                          "service_and_tests": [],
                          "test_modules": [
                            {
                              "name": "pytest-yaml",
                              "key_vals": [],
                              "repos": [
                                {
                                  "source": "gitlab",
                                  "repo_owner": "kr-poc",
                                  "repo_namespace": "kr-poc",
                                  "repo_name": "num_test",
                                  "remote_name": "origin",
                                  "branch": "master",
                                  "tag": "",
                                  "commit_id": "3d9fe02a2775caa25f5c1da925239f9e96f9900a",
                                  "commit_message": "Add new file",
                                  "checkout_path": "",
                                  "submodules": false,
                                  "codehost_id": 1,
                                  "address": "https://gitlab.com/",
                                }
                              ]
                            }
                          ]
                        },
                        "run_policy": ""
                      }
                    ]
                  },
                  {
                    "name": "freestyle",
                    "jobs": [
                      {
                        "name": "freestyle",
                        "type": "freestyle",
                        "spec": {
                          "freestyle_type": "service_freestyle",
                          "source": "fromjob",
                          "job_name": "build",
                          "ref_repos": false,
                          "repos": [
                            {
                              "source": "gitlab",
                              "repo_owner": "kr-test-org1",
                              "repo_namespace": "kr-test-org1",
                              "repo_name": "multi-service-demo",
                              "remote_name": "origin",
                              "branch": "patrick-01",
                              "tag": "",
                              "commit_id": "311fa899187a674a2e7fbf76cf2eeecdc8a51ac1",
                              "commit_message": "update service2 values\n",
                              "checkout_path": "",
                              "submodules": false,
                              "codehost_id": 1,
                              "address": "https://gitlab.com/",
                            }
                          ],
                          "envs": [
                            {
                              "key": "a",
                              "value": "b",
                              "type": "string",
                              "registry_id": "",
                              "is_credential": true,
                              "description": "",
                              "source": "runtime"
                            }
                          ],
                          "services": [
                            {
                              "service_name": "service1",
                              "service_module": "service1",
                              "repos": [
                                {
                                  "source": "gitlab",
                                  "repo_owner": "kr-test-org1",
                                  "repo_namespace": "kr-test-org1",
                                  "repo_name": "multi-service-demo",
                                  "remote_name": "origin",
                                  "branch": "patrick-01",
                                  "tag": "",
                                  "commit_id": "311fa899187a674a2e7fbf76cf2eeecdc8a51ac1",
                                  "commit_message": "update service2 values\n",
                                  "checkout_path": "",
                                  "submodules": false,
                                  "codehost_id": 1,
                                  "address": "https://gitlab.com/",
                                }
                              ],
                              "key_vals": [
                                {
                                  "key": "a",
                                  "value": "b",
                                  "type": "string",
                                  "registry_id": "",
                                  "is_credential": true,
                                  "description": "",
                                  "source": "runtime"
                                }
                              ]
                            },
                            {
                              "service_name": "service2",
                              "service_module": "service2",
                              "repos": [
                                {
                                  "source": "gitlab",
                                  "repo_owner": "kr-test-org1",
                                  "repo_namespace": "kr-test-org1",
                                  "repo_name": "multi-service-demo",
                                  "remote_name": "origin",
                                  "branch": "patrick-01",
                                  "tag": "",
                                  "commit_id": "311fa899187a674a2e7fbf76cf2eeecdc8a51ac1",
                                  "commit_message": "update service2 values\n",
                                  "checkout_path": "",
                                  "submodules": false,
                                  "codehost_id": 1,
                                  "address": "https://gitlab.com/",
                                }
                              ],
                              "key_vals": [
                                {
                                  "key": "a",
                                  "value": "b",
                                  "type": "string",
                                  "registry_id": "",
                                  "is_credential": true,
                                  "description": "",
                                  "source": "runtime"
                                }
                              ]
                            }
                          ]
                        },
                        "run_policy": ""
                      },
                      {
                        "name": "s-freestyle",
                        "type": "freestyle",
                        "spec": {
                          "freestyle_type": "",
                          "source": "runtime",
                          "job_name": "",
                          "ref_repos": false,
                          "repos": [
                            {
                              "source": "gitlab",
                              "repo_owner": "kr-test-org1",
                              "repo_namespace": "kr-test-org1",
                              "repo_name": "multi-service-demo",
                              "remote_name": "origin",
                              "branch": "patrick-01",
                              "tag": "",
                              "commit_id": "311fa899187a674a2e7fbf76cf2eeecdc8a51ac1",
                              "commit_message": "update service2 values\n",
                              "checkout_path": "",
                              "submodules": false,
                              "codehost_id": 1,
                              "address": "https://gitlab.com/",
                            }
                          ],
                          "envs": [],
                          "services": []
                        },
                        "run_policy": ""
                      }
                    ]
                  },
                  {
                    "name": "dist-image",
                    "jobs": [
                      {
                        "name": "dist-image",
                        "type": "zadig-distribute-image",
                        "spec": {
                          "source": "fromjob",
                          "job_name": "build",
                          "distribute_method": "image_push",
                          "targets": [
                            {
                              "service_name": "service1",
                              "service_module": "service1",
                              "source_image": "{{.job.build.service1.service1.output.IMAGE}}",
                              "target_image": "{{.job.dist-image.service1.service1.output.IMAGE}}",
                              "update_tag": false
                            },
                            {
                              "service_name": "service2",
                              "service_module": "service2",
                              "source_image": "{{.job.build.service2.service2.output.IMAGE}}",
                              "target_image": "{{.job.dist-image.service2.service2.output.IMAGE}}",
                              "update_tag": false
                            }
                          ],
                          "enable_target_image_tag_rule": false,
                          "target_image_tag_rule": ""
                        },
                        "run_policy": ""
                      }
                    ]
                  },
                  {
                    "name": "sql",
                    "jobs": [
                      {
                        "name": "sql",
                        "type": "sql",
                        "spec": {
                          "id": "68b7e9f9ce13fa85ce223363",
                          "type": "mysql",
                          "sql": "show databases;",
                          "source": "runtime"
                        },
                        "run_policy": ""
                      }
                    ]
                  },
                  {
                    "name": "nacos",
                    "jobs": [
                      {
                        "name": "nacos",
                        "type": "nacos",
                        "spec": {
                          "nacos_id": "68352725c2caad781e1b473e",
                          "namespace_id": "123456abcdefg",
                          "source": "fixed",
                          "nacos_datas": [
                            {
                              "data_id": "service1",
                              "group": "DEFAULT_GROUP",
                              "format": "YAML",
                              "content": "ASLAN_DB: zadig_ee_dev\nCLIENT_ID: zadig\nCLIENT_SECRET: ZXhhbXBsZS1hcHAtc2VjcmV0\nREDIS_HOST: kr-redis\nREDIS_PASSWORD: \"\"\nREDIS_PORT: \"6379\"\nREDIS_USER_TOKEN_DB: \"112\"\nREDIS_USERNAME: \"\"\nSCOPES: openid,profile,email,offline_access,groups,federated:id\nTOKEN_EXPIRES_AT: \"10001\"",
                              "original_content": "ASLAN_DB: zadig_ee_dev\nCLIENT_ID: zadig\nCLIENT_SECRET: ZXhhbXBsZS1hcHAtc2VjcmV0\nREDIS_HOST: kr-redis\nREDIS_PASSWORD: \"\"\nREDIS_PORT: \"6379\"\nREDIS_USER_TOKEN_DB: \"112\"\nREDIS_USERNAME: \"\"\nSCOPES: openid,profile,email,offline_access,groups,federated:id\nTOKEN_EXPIRES_AT: \"10001\"",
                              "namespace_id": "123456abcdefg",
                              "namespace_name": "public"
                            }
                          ]
                        },
                        "run_policy": ""
                      }
                    ]
                  },
                  {
                    "name": "apollo",
                    "jobs": [
                      {
                        "name": "apollo",
                        "type": "apollo",
                        "spec": {
                          "apolloID": "68352738c2caad781e1b473f",
                          "namespaceList": [
                            {
                              "appID": "poc",
                              "clusterID": "prod",
                              "env": "REGION1",
                              "namespace": "application",
                              "type": "properties",
                              "original_config": [
                                {
                                  "key": "spring.datasource.maxWait",
                                  "val": "300021"
                                },
                                {
                                  "key": "multipart.maxFileSize",
                                  "val": "8013"
                                },
                                {
                                  "key": "server.port",
                                  "val": "202113"
                                },
                                {
                                  "key": "server.context-path",
                                  "val": "/hera/poc/dev"
                                },
                                {
                                  "key": "logging.level.root",
                                  "val": "INFEVV"
                                }
                              ],
                              "kv": [
                                {
                                  "key": "spring.datasource.maxWait",
                                  "val": "300021"
                                },
                                {
                                  "key": "multipart.maxFileSize",
                                  "val": "8013"
                                },
                                {
                                  "key": "server.port",
                                  "val": "202113"
                                },
                                {
                                  "key": "server.context-path",
                                  "val": "/hera/poc/dev"
                                },
                                {
                                  "key": "logging.level.root",
                                  "val": "INFEVV"
                                }
                              ]
                            }
                          ]
                        },
                        "run_policy": ""
                      }
                    ]
                  }
                ],
                "project": "yaml",
                "description": "",
                "created_by": "patrick",
                "create_time": 1756883358,
                "updated_by": "patrick",
                "update_time": 1756883481,
                "remark": "",
                "enable_approval_ticket": false,
                "approval_ticket_id": ""
              },
              "status": "prepare",
              "task_id": 3
            },
            "status": "failed",
            "executed_by": "系统",
            "executed_time": 1756893022
          },
          {
            "id": "85970d24-5e47-4ef7-aa15-6afbf8c79a78",
            "name": "helm",
            "type": "workflow",
            "spec": {
              "workflow": {
                "name": "multi-chart-ops-workflow",
                "display_name": "multi-chart-ops-workflow",
                "disabled": false,
                "category": "",
                "params": [],
                "stages": [
                  {
                    "name": "部署",
                    "jobs": [
                      {
                        "name": "部署",
                        "type": "zadig-deploy",
                        "spec": {
                          "env": "dev",
                          "production": false,
                          "deploy_type": "helm",
                          "source": "runtime",
                          "env_source": "",
                          "deploy_contents": [
                            "vars",
                            "image"
                          ],
                          "job_name": "",
                          "version_name": "",
                          "services": [
                            {
                              "service_name": "service1",
                              "modules": [
                                {
                                  "service_module": "service1",
                                  "image": "koderover.tencentcloudcr.com/koderover-demo/service1:latest",
                                  "image_name": "service1"
                                }
                              ],
                              "deployed": false,
                              "auto_sync": false,
                              "update_config": false,
                              "updatable": false,
                              "variable_kvs": [],
                              "variable_yaml": "image:\n  repository: koderover.tencentcloudcr.com/koderover-demo/service1\n  tag: latest\n",
                              "value_merge_strategy": "reuse-values",
                              "override_kvs": ""
                            }
                          ]
                        },
                        "run_policy": ""
                      }
                    ]
                  }
                ],
                "project": "multi-chart",
                "description": "",
                "created_by": "system",
                "create_time": 1748227788,
                "updated_by": "patrick",
                "update_time": 1756865603,
                "remark": "",
                "enable_approval_ticket": false,
                "approval_ticket_id": ""
              },
              "status": "prepare",
              "task_id": 43
            },
            "status": "done",
            "executed_by": "系统",
            "executed_time": 1756893023
          },
          {
            "id": "79dfeb46-8135-4a3d-9b86-66d199ba1a76",
            "name": "vm",
            "type": "workflow",
            "spec": {
              "workflow": {
                "name": "vm-workflow-dev",
                "display_name": "vm-workflow-dev",
                "disabled": false,
                "category": "",
                "params": [],
                "stages": [
                  {
                    "name": "构建",
                    "jobs": [
                      {
                        "name": "构建",
                        "type": "zadig-build",
                        "spec": {
                          "source": "",
                          "job_name": "",
                          "ref_repos": false,
                          "service_and_builds": [
                            {
                              "service_name": "backend",
                              "service_module": "backend",
                              "build_name": "backend-build",
                              "image": "{{.job.构建.backend.backend.output.IMAGE}}",
                              "package": "{{.job.构建.backend.backend.output.PKG_FILE}}",
                              "image_name": "",
                              "key_vals": [
                                {
                                  "key": "x",
                                  "value": "a,b",
                                  "type": "multi-select",
                                  "registry_id": "",
                                  "choice_option": [
                                    "a",
                                    "b",
                                    "c"
                                  ],
                                  "choice_value": [
                                    "a",
                                    "b"
                                  ],
                                  "is_credential": false,
                                  "description": "",
                                  "source": "runtime"
                                }
                              ],
                              "repos": [
                                {
                                  "source": "gitlab",
                                  "repo_owner": "kr-poc",
                                  "repo_namespace": "kr-poc",
                                  "repo_name": "zadig",
                                  "remote_name": "origin",
                                  "branch": "main",
                                  "tag": "",
                                  "commit_id": "9a4594d4a76fd62b6e25cbdb65c35579f816e720",
                                  "commit_message": "update spring-cloud-piggymetrics example\n\nSigned-off-by: lilianzhu <zhujiali@koderover.com>\n",
                                  "checkout_path": "",
                                  "submodules": false,
                                  "codehost_id": 1,
                                  "address": "https://gitlab.com/",
                                }
                              ]
                            }
                          ]
                        },
                        "run_policy": ""
                      }
                    ]
                  },
                  {
                    "name": "主机部署",
                    "jobs": [
                      {
                        "name": "主机部署",
                        "type": "zadig-vm-deploy",
                        "spec": {
                          "env": "dev",
                          "production": false,
                          "env_alias": "",
                          "ref_repos": true,
                          "service_and_vm_deploys": [
                            {
                              "repos": [
                                {
                                  "source": "gitlab",
                                  "repo_owner": "kr-poc",
                                  "repo_namespace": "kr-poc",
                                  "repo_name": "microservice-demo",
                                  "remote_name": "origin",
                                  "branch": "main",
                                  "tag": "",
                                  "commit_id": "",
                                  "commit_message": "",
                                  "checkout_path": "",
                                  "submodules": false,
                                  "codehost_id": 1,
                                  "address": "",
                                }
                              ],
                              "service_name": "backend",
                              "service_module": "backend",
                              "deploy_name": "",
                              "deploy_artifact_type": "file",
                              "artifact_url": "",
                              "file_name": "{{.job.构建.backend.backend.output.PKG_FILE}}",
                              "image": "{{.job.构建.backend.backend.output.IMAGE}}",
                              "key_vals": [
                                {
                                  "key": "k1",
                                  "value": "v33",
                                  "type": "string",
                                  "registry_id": "",
                                  "is_credential": false,
                                  "description": "",
                                  "source": "runtime"
                                },
                                {
                                  "key": "k2",
                                  "value": "b",
                                  "type": "choice",
                                  "registry_id": "",
                                  "choice_option": [
                                    "a",
                                    "b",
                                    "c"
                                  ],
                                  "is_credential": false,
                                  "description": "",
                                  "source": "runtime"
                                },
                                {
                                  "key": "k3",
                                  "value": "1,2",
                                  "type": "multi-select",
                                  "registry_id": "",
                                  "choice_option": [
                                    "1",
                                    "2",
                                    "a"
                                  ],
                                  "choice_value": [
                                    "1",
                                    "2"
                                  ],
                                  "is_credential": false,
                                  "description": "",
                                  "source": "runtime"
                                }
                              ]
                            }
                          ],
                          "source": "fromjob",
                          "job_name": "构建"
                        },
                        "run_policy": ""
                      }
                    ]
                  }
                ],
                "project": "vm",
                "description": "",
                "created_by": "system",
                "create_time": 1748237133,
                "updated_by": "lilian",
                "update_time": 1750645287,
                "remark": "",
                "enable_approval_ticket": false,
                "approval_ticket_id": ""
              },
              "status": "prepare",
              "task_id": 20
            },
            "status": "done",
            "executed_by": "系统",
            "executed_time": 1756893023
          },
          {
            "id": "3110fea4-39f4-49e1-a0a8-b010358db3ae",
            "name": "text",
            "type": "text",
            "spec": {
              "content": "<p>text</p>",
              "remark": "<p><br></p>"
            },
            "status": "done",
            "executed_by": "patrick",
            "executed_time": 1756892908
          }
        ],
        "status": "wait_for_success_external_check",
        "planning_time": 1756892886,
        "approval_time": 0,
        "executing_time": 1756892896,
        "success_time": 1756893100
      }
    }
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    651
    652
    653
    654
    655
    656
    657
    658
    659
    660
    661
    662
    663
    664
    665
    666
    667
    668
    669
    670
    671
    672
    673
    674
    675
    676
    677
    678
    679
    680
    681
    682
    683
    684
    685
    686
    687
    688
    689
    690
    691
    692
    693
    694
    695
    696
    697
    698
    699
    700
    701
    702
    703
    704
    705
    706
    707
    708
    709
    710
    711
    712
    713
    714
    715
    716
    717
    718
    719
    720
    721
    722
    723
    724
    725
    726
    727
    728
    729
    730
    731
    732
    733
    734
    735
    736
    737
    738
    739
    740
    741
    742
    743
    744
    745
    746
    747
    748
    749
    750
    751
    752
    753
    754
    755
    756
    757
    758
    759
    760
    761
    762
    763
    764
    765
    766
    767
    768
    769
    770
    771
    772
    773
    774
    775
    776
    777
    778
    779
    780
    781
    782
    783
    784
    785
    786
    787
    788
    789
    790
    791
    792
    793
    794
    795
    796
    797
    798
    799
    800
    801
    802
    803
    804
    805
    806
    807
    808
    809
    810
    811
    812
    813
    814
    815
    816
    817
    818
    819
    820
    821
    822
    823
    824
    825
    826
    827
    828
    829
    830
    831
    832
    833
    834
    835
    836
    837
    838
    839
    840
    841
    842
    843
    844
    845
    846
    847
    848
    849
    850
    851
    852
    853
    854
    855
    856
    857
    858
    859
    860
    861
    862
    863
    864
    865
    866
    867
    868
    869
    870
    871
    872
    873
    874
    875
    876
    877
    878
    879
    880
    881
    882
    883
    884
    885
    886
    887
    888
    889
    890
    891
    892
    893
    894
    895
    896
    897
    898
    899
    900
    901
    902
    903
    904
    905
    906
    907
    908
    909
    910
    911
    912
    913
    914
    915
    916
    917
    918
    919
    920
    921
    922
    923
    924
    925
    926
    927
    928
    929
    930
    931
    932
    933
    934
    935
    936
    937
    938
    939
    940
    941
    942
    943
    944
    945
    946
    947
    948
    949
    950
    951
    952
    953
    954
    955
    956
    957
    958
    959
    960
    961
    962
    963
    964
    965
    966
    967
    968
    969
    970
    971
    972
    973
    974
    975
    976
    977
    978
    979
    980
    981
    982
    983
    984
    985
    986
    987
    988
    989
    990
    991
    992
    993
    994
    995
    996
    997
    998
    999
    1000
    1001
    1002
    1003
    1004
    1005
    1006
    1007
    1008
    1009
    1010
    1011
    1012
    1013
    1014
    1015
    1016
    1017
    1018
    1019
    1020
    1021
    1022
    1023
    1024
    1025
    1026
    1027
    1028
    1029
    1030
    1031
    1032
    1033
    1034
    1035
    1036
    1037
    1038
    1039
    1040
    1041

    # 发布计划 CallBack

    请求

    POST /api/callback/release_plan
    
    1

    body 参数说明

    参数名类型描述是否必须默认值
    hook_eventstringHook 事件,枚举值:finish_planning, start_execute, all_job_done是无
    release_plan_idstring发布计划 ID是无
    instance_codestring实例 Code是无
    resultstring结果,枚举值:success, failed是无
    failed_reasonstring失败原因否无

    body 参数示例

    {
        "hook_event": "all_job_done",
        "release_plan_id": "68b7ec363306e52e21b2dbe6",
        "instance_code": "e52e21b68b7ec3",
        "result": "success",
        "failed_reason": ""
    }
    
    1
    2
    3
    4
    5
    6
    7

    正常返回

    {
      "id": "6895627bd3a843cb7423728a"
    }
    
    1
    2
    3

    ← 版本管理与发布流程实践工作流→

    资源
    教程
    论坛
    博客
    公司
    关于
    客户故事
    加入我们
    联系我们
    微信扫一扫
    hello@koderover.com

    © 2026 筑栈(上海)信息技术有限公司 沪 ICP 备 19000177 号 - 1

    •  跟随系统
    •  浅色模式
    •  深色模式
    •  阅读模式